package com.weibo.history.service.imp;

import java.util.List;

import org.apache.log4j.Logger;

import com.weibo.history.History;
import com.weibo.history.dao.HistoryDao;
import com.weibo.history.dao.imp.HistoryDaoImp;
import com.weibo.history.service.HistoryService;


public class HistoryServiceImp implements HistoryService{
	private static Logger logger =  Logger.getLogger(HistoryServiceImp.class);
	private HistoryDao   historyDao = new HistoryDaoImp();
	@Override
	public boolean addHistory(History history) {
		// TODO Auto-generated method stub
		return historyDao.addHistory(history);
	}

	@Override
	public boolean deleteHistory(String his_id) {
		// TODO Auto-generated method stub
		return historyDao.deleteHistory(his_id);
	}

	@Override
	public boolean executeSql(String sql) {
		// TODO Auto-generated method stub
		return historyDao.executeSql(sql);
	}

	@Override
	public List getHistoryList(int currentPage,String user_id) {
		// TODO Auto-generated method stub
		return historyDao.getHistoryList(currentPage,user_id);
	}

	@Override
	public List getHistoryList_bySql(String sql) {
		// TODO Auto-generated method stub
		return historyDao.getHistoryList_bySql(sql);
	}
	

}
